from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import RoleViewSet

# 创建一个路由器对象
router = DefaultRouter()
router.register(r'roles', RoleViewSet, basename='roles')

# 配置URL路由
urlpatterns = [
    path('', include(router.urls)),  # 包含角色管理相关的路由
]
